package com.xxxx.ssm.service;

import com.xxxx.ssm.dao.UserDao;
import com.xxxx.ssm.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public User queryUserByUserId(Integer userId){
        return userDao.queryUserByUserId(userId);
    }

    public User userLoginByUserInfo(User userParam){
        return userDao.userLoginByUserInfo(userParam);
    }

    //获取用户列表
    public List<User> getUserList() {
        return userDao.getUserList();
    }
}
